/* State Component Styles */
.state-container {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.state-section {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
  transition: transform 0.2s ease;
  min-width: 0;
}

.state-section:hover {
  transform: translateY(-2px);
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #444;
}

/* Counter styles */
.counter-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.counter-button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.counter-button-decrease {
  background-color: #dc3545;
}

.counter-button-decrease:hover {
  background-color: #c82333;
}

.counter-button-increase {
  background-color: #28a745;
}

.counter-button-increase:hover {
  background-color: #218838;
}

.counter-value {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  min-width: 3ch;
  text-align: center;
}

/* Text input styles */
.state-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.state-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Color picker styles */
.color-picker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 48px;
  height: 48px;
  margin: 8px auto;
}

.color-picker {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

.color-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  border: 2px solid #e0e0e0;
  z-index: 1;
}

.state-hint {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 16px;
}
